/*
 * @Author: 1453937336@qq.com 1453937336@qq.com
 * @Date: 2024-05-27 10:01:09
 * @LastEditors: 1453937336@qq.com 1453937336@qq.com
 * @LastEditTime: 2024-05-29 17:06:25
 * @FilePath: \itforce-hris\src\store\mutation.ts
 * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
 */
const mutations = {
  /* 面包屑导航列表 */
  SET_CRUMB_LIST(state: any, list: Array<any>) {
    state.crumbList = list;
  },
  //左边导航栏列表
  SET_MENU(state: any, menu: Array<any>) {
    state.sidebarMenu = menu;
  },
  /* 完整的路由表 */
  SET_PERMISSION(state: any, routes: Array<any>) {
    state.permissionList = routes;
  },
  //当前选中的导航
  SET_CURRENT_MENU(state: any, currentMenu: string) {
    state.currentMenu = currentMenu;
  },
  // 当前路由
  SET_CURRENT_PATH(state: any, currentPath: string) {
    state.currentPath = currentPath;
  },
  //当前选中的一级菜单
  SET_MENU_FIRST_CHOOSE(state: any, menuFirstChoose: any) {
    state.menuFirstChoose = menuFirstChoose;
  }
};
export default mutations;
